const getters = {
  // 函数的简写形式
  sidebar: state => state.app.sidebar,
  device: state => state.app.device,
  token: state => state.user.token,
  avatar: state => state.user.avatar,
  name: state => state.user.name,
  username: state => state.user.userInfo.username, // 获取用户名字
  staffPhoto: state => state.user.userInfo.staffPhoto, // 获取用户头像
  companyId: state => state.user.userInfo.companyId, // 获取公司id
  userId: state => state.user.userInfo.userId // 获取到用户id
}
export default getters
